﻿using System;
using System.ComponentModel.Composition;

namespace GaleSong
{
    public interface IDialogMetaData
    {
        string DialogName { get; }
    }

    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class DialogAttribute : ExportAttribute, IDialogMetaData
    {
        public DialogAttribute() : base(typeof(IDialog))
        {
        }

        public DialogAttribute(Type contractType) : base(contractType)
        {
        }

        #region IDialogMetaData Members

        public string DialogName { get; set; }

        #endregion
    }
}